#ifndef __f_Secret_EDITOR__
#define __f_Secret_EDITOR__

#include <e32std.h>
#include <e32base.h>
#include <COEUTILS.H>
#include <s32file.h>
#include <f32file.h>
#include <COEMAIN.H>
#include "CutString.h"
#include "TextConvert.h"
#include "MagazineDefines.h"

#include <eikedwin.h>

#include <eikenv.h>   // for CAknEnv::Static()
#include <aknindicatorcontainer.h>   //for CAknIndicatorContainer
#include <aknnumseced.h>
//enum TfInputMode
//{
//    EInputText, EInputNumber, EInputPassword, EInputAll
//};
//enum TFepType
//{
//    EFepTypeUnknown = -1, EFeptypeabc = 0, EFeptypeAbc, EFeptypeABC, EFeptype123, EFeptypePinyin, EFeptypeBihua,
//};


/*

 class MAknEditingStateIndicator
 {
 public:
 //virtual void SetState(TAknEditingState aState) = 0;
 virtual CAknIndicatorContainer *IndicatorContainer( ) = 0;
 };
 */

class fSecretEditor : public fControlBase
{
public:
    //static TFepType GetCurrentIndicatorState( );
public:
    static fSecretEditor *NewL( fEngine * aEngine );
    static fSecretEditor* NewLC( fEngine * aEngine );
    ~fSecretEditor( );
private:
    fSecretEditor( );
    void ConstructL( fEngine * aEngine );
public:
    void RenderFrame( );
    void HandleKey( f_KEY_DES * aKeyDes );
    TInt HandleMouse( fMouseEvent /*nType*/, TPoint /*sPoint*/ )
    {
        return 0;
    }
public:
    const TDesC& GetTextL( );
    void SetTextL( const TDesC& aText );
    void CreateEditor( TInt aMaxLengthInChars );
    void SetFocus( TBool bFocus = ETrue );
    TBool IsEditorFocused( )
    {
        return iIsEditorFocused;
    }
private:
    enum
    {
        EBoderColor = 0xC89A71
    };
public:
    CEikSecretEditor* iEditor;
private:
    HBufC* iInputContent;
    TBool iIsEditorFocused;
private:
 
private:
    fImage* _textbox_hilite;
    fImage* _textbox_normal;
};
#endif//__f_EDITOR__
